package com.demo.http.androidnative.bean;

import java.util.Map;

/**
 * Created by yangming on 16-11-16.
 */
public class RequestInfo {

    public enum Type {
        GET,
        POST
    }

    private Type type;

    private String host;

    private Map<String, String> params;

    public RequestInfo() {
    }

    public RequestInfo(Type type, String host, Map<String, String> params) {
        this.type = type;
        this.host = host;
        this.params = params;
    }

    public Type getType() {
        return type;
    }

    public void setType(Type type) {
        this.type = type;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public Map<String, String> getParams() {
        return params;
    }

    public void setParams(Map<String, String> params) {
        this.params = params;
    }

    @Override
    public String toString() {
        return "RequestInfo{" +
                "host='" + host + '\'' +
                ", params=" + params +
                '}';
    }
}
